<div ng-controller="customerManageCtrl">
    <ol class="breadcrumb">
        <!-- <li><a href="javascript:void(0)">系统管理</a></li> -->
        <li>客户管理</li>
    </ol>
    <div class="content-container">
        <div class="query">
            <div class="row">
                <form>
                    <div class="col-lg-2 m-r-1">
                        <div class="input-group input-group-sm">
                            <input type="text" class="form-control" ng-model="conditions.name" placeholder="客户名称">
                        </div>
                    </div>
                    <div class="col-lg-2 m-r-1" select-search my-list="brands" select-value="conditions.select_brand" key="name" placeholder="请选择品牌名称" func="getStore()">
                    </div>
                    <div class="col-lg-2 m-r-1" select-search my-list="stores" select-value="conditions.select_store" key="name" placeholder="请选择店面名称" func="getSale()">
                    </div>
                    <div class="col-lg-2 m-r-1" select-search my-list="sells" select-value="conditions.select_sell" key="name" placeholder="请选择销售人员">
                    </div>
                </form>
            </div>
            <div class="row">
                <div class="col-lg-2 m-r-1">
                    <div class="input-group input-group-sm">
                        <select class="form-control" ng-model="conditions.prequalification">
                            <option value="">预审结果</option>
                            <option value="{{key.value}}" ng-repeat="key in g_preResult">{{key.keyword}}</option>
                        </select>
                    </div>
                </div>
                <div class="col-lg-2 m-r-1">
                    <div class="input-group input-group-sm">
                        <select class="form-control" ng-model="conditions.the">
                            <option value="">终审结果</option>
                            <option value="{{key.value}}" ng-repeat="key in g_finallyResult">{{key.keyword}}</option>
                        </select>
                    </div>
                </div>
                <div class="col-lg-2 m-r-1">
                    <div class="input-group input-group-sm">
                        <input type="text" class="form-control" uib-datepicker-popup="yyyy-MM-dd" ng-model="conditions.start_date" is-open="date_s" close-text="关闭" clear-text="清除" current-text="今天" placeholder="进件开始时间" ng-focus="date_s=true" />
                    </div>
                </div>
                <div class="col-lg-1 u-date">
                    -
                </div>
                <div class="col-lg-2 m-r-1">
                    <div class="input-group input-group-sm">
                        <input type="text" class="form-control" uib-datepicker-popup="yyyy-MM-dd" ng-model="conditions.end_date" is-open="date_e" close-text="关闭" clear-text="清除" current-text="今天" placeholder="进件结束时间" ng-focus="date_e=true" />
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-2 m-r-1">
                    <div class="input-group input-group-sm">
                        <select class="form-control" ng-model="conditions.isPledge">
                            <option value="">是否抵押</option>
                            <option value="1">是</option>
                            <option value="0">否</option>
                        </select>
                    </div>
                </div>
                <div class="col-lg-1">
                    <div class="input-group input-group-sm text-right">
                        <button class="btn btn-primary query-btn" ng-click="query()">查询</button>
                    </div>
                </div>
                <div class="col-lg-1">
                    <div class="input-group input-group-sm text-right">
                        <button class="btn btn-success query-btn" ng-click="add()">添加</button>
                    </div>
                </div>
                <div class="col-lg-1">
                    <div class="input-group input-group-sm text-right">
                        <button class="btn btn-default query-btn" ng-click="clearQuery()">清除</button>
                    </div>
                </div>
            </div>
        </div>
        <div class="row page-result" ng-show="data.length > 0">
            <div class="col-lg-6">
                符合您的查询结果共有
                <label class="text-danger" ng-bind="total"></label>条
            </div>
            <div class="col-lg-6">
                <div class="pagination-size">
                    <select ng-change="changePageSize()" class="form-control input-sm" ng-options="option.name for option in page_size_arr track by option.value" ng-model="page_size">
                    </select>
                </div>
                <ul uib-pagination total-items="total" ng-model="conditions.page" max-size="5" class="pagination-sm pull-right" boundary-link-numbers="true" previous-text="上一页" next-text="下一页" items-per-page="conditions.rows" ng-change="query()"></ul>
            </div>
        </div>
        <div class="datagrid">
            <table class="table table-bordered" ng-show="data.length > 0">
                <tr>
                    <th style="width:5%;">序号</th>
                    <th style="width:12%;">客户名称</th>
                    <th style="width:15%;">店面名称</th>
                    <th style="width:15%;">车辆型号</th>
                    <th style="width:17%;">车贷金额</th>
                    <th style="width:8%;">期数</th>
                    <th style="width:8%;">终审结果</th>
                    <th style="width:20%;">操作</th>
                </tr>
                <tr ng-repeat="customer in data" ng-click="selectRow(customer)" ng-class="{'bg-info' : customer.selected}">
                    <td>{{$index+1+(conditions.page-1)*conditions.rows}}</td>
                    <td>{{customer.name}}</td>
                    <td>{{customer.companyName}}</td>
                    <td>{{customer.carName}}</td>
                    <td>{{customer.money}}</td>
                    <td>{{customer.periods}}</td>
                    <td>{{customer.theName}}</td>
                    <td>
                        <button class="btn btn-success btn-sm" ng-click="update(customer)"><span class="glyphicon glyphicon-pencil top-2 right-2"></span>修改</button>
                        <button class="btn btn-danger btn-sm" ng-click="delete(customer.id)"><span class="glyphicon glyphicon-remove top-2 right-2"></span>删除</button>
                        <button class="btn btn-primary btn-sm" ng-click="detail(customer)"><span class="glyphicon glyphicon-glass top-2 right-2"></span>详情</button>
                    </td>
                </tr>
            </table>
            <div ng-show="data.length == 0" class="alert alert-warning">
                <span class="glyphicon glyphicon-info-sign"></span>&nbsp;查无相关数据，请重新查询！
            </div>
        </div>
    </div>
    <div alert title="alert.title" content="alert.content" open="alert.open"></div>
</div>
<!-- end controller -->
<!-- 新增窗口 -->
<script type="text/ng-template" id="add.html">
    <div class="modal-header">
        <button type="button" class="close" ng-click="cancel()"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
        <h3 class="modal-title" id="modal-title">客户管理信息{{title}}</h3>
    </div>
    <form name="add_form" novalidate>
        <div class="modal-body" id="modal-body">
            <div class="info_bd">
                <div class="sub_title">基本信息</div>
                <div class="form-horizontal">
                    <div class="form-group">
                        <div class="col-md-4 m-t-1">
                            <span class="col-md-4 remove-padding control-label">
                                日期：
                            </span>
                            <div class="col-md-8">
                                <input type="text" class="form-control" uib-datepicker-popup="yyyy-MM-dd" ng-model="customer.request_date" is-open="is_riqi" close-text="关闭" clear-text="清除" current-text="今天" placeholder="日期" ng-focus="is_riqi=true" name="request_date" />
                                <div ng-show="add_form.request_date.$dirty && add_form.request_date.$invalid" class="invalid">
                                    请填写日期
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4 m-t-1">
                            <span class="col-md-4 remove-padding control-label">
                                客户名称：
                            </span>
                            <div class="col-md-8">
                                <input type="text" name="name" class="form-control" ng-model="customer.name" placeholder="客户名称">
                                <div ng-show="add_form.name.$dirty && add_form.name.$invalid" class="invalid">
                                    请填写客户名称
                                </div>
                            </div>
                        </div>
                        <!-- <div class="col-md-4 m-t-1">
                            <span class="col-md-4 remove-padding control-label">
                                身份证号码：
                            </span>
                            <div class="col-md-8">
                                <input type="text" name="idcard" class="form-control" ng-model="customer.idcard" placeholder="身份证号码" ng-pattern="/(^\d{15}$)|(^\d{17}([0-9]|X)$)/" autocomplete="off">
                                <div ng-show="add_form.idcard.$dirty && add_form.idcard.$invalid" class="invalid">
                                    请填写正确的身份证号码
                                </div>
                            </div>
                        </div> -->
                        <div class="col-md-4 m-t-1">
                            <span class="col-md-4 remove-padding control-label">
                                联系电话：
                            </span>
                            <div class="col-md-8">
                                <input type="text" name="phone" class="form-control" ng-model="customer.phone" placeholder="联系电话" ng-minlength="11" ng-maxlength="11" autocomplete="off">
                                <div ng-show="add_form.phone.$dirty && add_form.phone.$invalid" class="invalid">
                                    请填写正确的联系电话
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4 m-t-1">
                            <span class="col-md-4 remove-padding control-label">
                                客户属性：
                            </span>
                            <div class="col-md-8">
                                <select class="form-control" ng-model="customer.clientProperty" name="clientProperty">
                                    <option value="">请选择</option>
                                    <option value="{{key.value}}" ng-repeat="key in g_clientType">{{key.keyword}}</option>
                                </select>
                                <div ng-show="add_form.clientProperty.$dirty && add_form.clientProperty.$invalid" class="invalid">请选择客户属性</div>
                            </div>
                        </div>
                        <div class="col-md-4 m-t-1">
                            <span class="col-md-4 remove-padding control-label">
                                进件方式：
                            </span>
                            <div class="col-md-8">
                                <select class="form-control" ng-model="customer.intoWay" name="intoWay">
                                    <option value="">请选择</option>
                                    <option value="{{key.value}}" ng-repeat="key in g_document">{{key.keyword}}</option>
                                </select>
                                <div ng-show="add_form.intoWay.$dirty && add_form.intoWay.$invalid" class="invalid">请选择进件方式</div>
                            </div>
                        </div>
                        <div class="col-md-4 m-t-1">
                            <span class="col-md-4 remove-padding control-label">
                                上牌人地点：
                            </span>
                            <div class="col-md-8">
                                <input type="text" name="address" class="form-control" ng-model="customer.address" placeholder="上牌人地点">
                                <div ng-show="add_form.address.$dirty && add_form.address.$invalid" class="invalid">
                                    请填写上牌人地点
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4 m-t-1">
                            <span class="col-md-4 remove-padding control-label">
                                上牌人情况：
                            </span>
                            <div class="col-md-8">
                                <select class="form-control" ng-model="customer.situation" name="situation">
                                    <option value="">请选择</option>
                                    <option value="{{key.value}}" ng-repeat="key in g_condition">{{key.keyword}}</option>
                                </select>
                                <div ng-show="add_form.situation.$dirty && add_form.situation.$invalid" class="invalid">请选择上牌人情况</div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="sub_title">购车信息</div>
                <div class="form-horizontal">
                    <div class="form-group">
                        <div class="col-md-4 m-t-1">
                            <span class="col-md-4 remove-padding control-label">
                                品牌名称：
                            </span>
                            <div class="col-md-8" form-search my-list="brands" select-value="customer.select_brand" select-id="customer.brand_id" key="name" placeholder="请选择品牌名称" change-children="cars" func="getStore()">
                            </div>
                        </div>
                        <div class="col-md-4 m-t-1">
                            <span class="col-md-4 remove-padding control-label">
                                店面名称：
                            </span>
                            <div class="col-md-8" form-search my-list="stores" select-value="customer.select_store" select-id="customer.company_id" key="name" placeholder="请选择店面名称" func="getCar()">
                            </div>
                        </div>
                        <div class="col-md-4 m-t-1">
                            <span class="col-md-4 remove-padding control-label">
                                车辆型号：
                            </span>
                            <div class="col-md-8" form-search my-list="cars" select-value="customer.select_car" select-id="customer.car_id" key="carName" placeholder="请选择车辆型号" func="choosePeriod()">
                            </div>
                        </div>
                        <div class="col-md-4 m-t-1">
                            <span class="col-md-4 remove-padding control-label">
                                销售人员：
                            </span>
                            <div class="col-md-8" form-search my-list="sells" select-value="customer.select_sell" select-id="customer.sell_id" key="name" placeholder="请选择销售人员" style="z-index: 9;">
                            </div>
                        </div>
                        <div class="col-md-4 m-t-1">
                            <span class="col-md-4 remove-padding control-label">
                                贷款金额：
                            </span>
                            <div class="col-md-8">
                                <input type="number" name="money" class="form-control" ng-model="customer.money" placeholder="贷款金额">
                                <div ng-show="add_form.money.$dirty && add_form.money.$invalid" class="invalid">
                                    请填写贷款金额
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4 m-t-1">
                            <span class="col-md-4 remove-padding control-label">
                                期数：
                            </span>
                            <div class="col-md-8">
                                <select class="form-control" ng-model="customer.periods" name="periods" ng-change="choosePeriod()">
                                    <option value="">请选择</option>
                                    <option value="{{key.value}}" ng-repeat="key in g_periods">{{key.keyword}}</option>
                                </select>
                                <!--  <input type="number" name="periods" class="form-control" ng-model="customer.periods" placeholder="期数"> -->
                                <div ng-show="add_form.periods.$dirty && add_form.periods.$invalid" class="invalid">
                                    请填写期数
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4 m-t-1">
                            <span class="col-md-4 remove-padding control-label">
                                客户费率：
                            </span>
                            <div class="col-md-8">
                                <!-- <input type="number" name="clientRate" class="form-control" ng-model="customer.clientRate" placeholder="客户费率"> -->
                                <select class="form-control" ng-model="customer.clientRate" name="periods" ng-change="chooseClientFee()">
                                    <option value="">请选择</option>
                                    <option value="{{key}}" ng-repeat="key in clientSelect track by $index">{{key}}</option>
                                </select>
                                <div ng-show="add_form.clientRate.$dirty && add_form.clientRate.$invalid" class="invalid">
                                    请填写客户费率
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4 m-t-1">
                            <span class="col-md-4 remove-padding control-label">
                                经销商费率：
                            </span>
                            <div class="col-md-8">
                                <input type="number" name="dealerRate" class="form-control" ng-model="customer.dealerRate" placeholder="经销商费率">
                                <!-- <select class="form-control" ng-model="customer.dealerRate" name="periods">
                                    <option value="">请选择</option>
                                    <option value="{{key}}" ng-repeat="key in dealerSelect">{{key}}</option>
                                </select> -->
                                <div ng-show="add_form.dealerRate.$dirty && add_form.dealerRate.$invalid" class="invalid">
                                    <span>请填写经销商费率</span>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4 m-t-1">
                            <span class="col-md-4 remove-padding control-label">
                                厂家费率：
                            </span>
                            <div class="col-md-8">
                                <input type="number" name="venderRate" class="form-control" ng-model="customer.venderRate" placeholder="厂家费率">
                                <!-- <select class="form-control" ng-model="customer.venderRate" name="periods">
                                    <option value="">请选择</option>
                                    <option value="{{key}}" ng-repeat="key in venderSelect">{{key}}</option>
                                </select> -->
                                <div ng-show="add_form.venderRate.$dirty && add_form.venderRate.$invalid" class="invalid">
                                    请填写厂家费率
                                </div>
                            </div>
                        </div>
                        <div checked-readonly>
                            <div class="sub_title m-l-1" style="margin-left:20px;top: 0px;border: none; ">
                                <div class="checkbox">
                                    <label>
                                        <input type="checkbox" style="margin-top:2px;" ng-checked="customer.isSurcharge" ng-click="isSurchargeFn()"><span class="glyphicon glyphicon-paperclip blue-color"></span>&nbsp;附加率</label>
                                </div>
                            </div>
                            <div class="col-md-4 m-t-1">
                                <span class="col-md-4 remove-padding control-label">
                                附加率金额：
                            </span>
                                <div class="col-md-8">
                                    <input type="text" name="surchargeMoney" class="form-control" ng-model="customer.surchargeMoney" placeholder="附加率金额">
                                </div>
                            </div>
                            <div class="col-md-4 m-t-1">
                                <span class="col-md-4 remove-padding control-label">
                                期 数：
                            </span>
                                <div class="col-md-8">
                                    <select class="form-control" ng-model="customer.surchargePeriods" name="surchargePeriods">
                                        <option value="">请选择</option>
                                        <option value="{{key.value}}" ng-repeat="key in g_periods">{{key.keyword}}</option>
                                    </select>
                                </div>
                            </div>
                            <div class="col-md-4 m-t-1">
                                <span class="col-md-4 remove-padding control-label">
                                客户费率：
                            </span>
                                <div class="col-md-8">
                                    <input type="text" name="surchargeClientRate" class="form-control" ng-model="customer.surchargeClientRate" placeholder="客户费率">
                                    <!-- <select class="form-control" ng-model="customer.surchargeClientRate" name="surchargeClientRate">
                                    <option value="">请选择</option>
                                    <option value="{{key}}" ng-repeat="key in clientSelect">{{key}}</option> -->
                                </select>
                                </div>
                            </div>
                            <div class="col-md-4 m-t-1">
                                <span class="col-md-4 remove-padding control-label">
                                经销商费率：
                            </span>
                                <div class="col-md-8">
                                    <input type="text" name="surchargeDealerRate" class="form-control" ng-model="customer.surchargeDealerRate" placeholder="经销商费率">
                                    <!-- <select class="form-control" ng-model="customer.surchargeDealerRate" name="surchargeDealerRate">
                                    <option value="">请选择</option>
                                    <option value="{{key}}" ng-repeat="key in dealerSelect">{{key}}</option>
                                                                    </select> -->
                                </div>
                            </div>
                            <div class="col-md-4 m-t-1">
                                <span class="col-md-4 remove-padding control-label">
                                厂家费率：
                            </span>
                                <div class="col-md-8">
                                    <input type="text" name="surchargeVenderRate" class="form-control" ng-model="customer.surchargeVenderRate" placeholder="厂家费率">
                                    <!-- <select class="form-control" ng-model="customer.surchargeVenderRate" name="surchargeVenderRate">
                                    <option value="">请选择</option>
                                    <option value="{{key}}" ng-repeat="key in venderSelect">{{key}}</option>
                                                                    </select> -->
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="sub_title">审核信息</div>
                <div class="form-horizontal">
                    <div class="form-group">
                        <div class="col-md-4 m-t-1">
                            <span class="col-md-4 remove-padding control-label">
                                预审结果：
                            </span>
                            <div class="col-md-8">
                                <select class="form-control" ng-model="customer.prequalification" name="prequalification">
                                    <option value="">请选择</option>
                                    <option value="{{key.value}}" ng-repeat="key in g_preResult">{{key.keyword}}</option>
                                </select>
                                <div ng-show="add_form.prequalification.$dirty && add_form.prequalification.$invalid" class="invalid">请选择预审结果</div>
                            </div>
                        </div>
                        <div class="col-md-4 m-t-1">
                            <span class="col-md-4 remove-padding control-label">
                                终审结果：
                            </span>
                            <div class="col-md-8">
                                <select class="form-control" ng-model="customer.the" name="the">
                                    <option value="">请选择</option>
                                    <option value="{{key.value}}" ng-repeat="key in g_finallyResult">{{key.keyword}}</option>
                                </select>
                                <div ng-show="add_form.the.$dirty && add_form.the.$invalid" class="invalid">请选择终审结果</div>
                            </div>
                        </div>
                        <div class="col-md-4 m-t-1">
                            <span class="col-md-4 remove-padding control-label">
                                进件时间：
                            </span>
                            <div class="col-md-8">
                                <input type="text" class="form-control" uib-datepicker-popup="yyyy-MM-dd" ng-model="customer.into_date" is-open="is_jinjian" close-text="关闭" clear-text="清除" current-text="今天" placeholder="进件时间" ng-focus="is_jinjian=true" />
                                <div ng-show="add_form.into_date.$dirty && add_form.into_date.$invalid" class="invalid">
                                    请填写进件时间
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4 m-t-1">
                            <span class="col-md-4 remove-padding control-label">
                                同贷时间：
                            </span>
                            <div class="col-md-8">
                                <input type="text" class="form-control" uib-datepicker-popup="yyyy-MM-dd" ng-model="customer.loan_date" is-open="is_tongdai" close-text="关闭" clear-text="清除" current-text="今天" placeholder="同贷时间" ng-focus="is_tongdai=true" />
                                <div ng-show="add_form.loan_date.$dirty && add_form.loan_date.$invalid" class="invalid">
                                    请填写同贷时间
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4 m-t-1">
                            <span class="col-md-4 remove-padding control-label">
                                放款时间：
                            </span>
                            <div class="col-md-8">
                                <input type="text" class="form-control" uib-datepicker-popup="yyyy-MM-dd" ng-model="customer.credit_date" is-open="is_fangkuan" close-text="关闭" clear-text="清除" current-text="今天" placeholder="放款时间" ng-focus="is_fangkuan=true" />
                                <div ng-show="add_form.credit_date.$dirty && add_form.credit_date.$invalid" class="invalid">
                                    请填写放款时间
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4 m-t-1">
                            <span class="col-md-4 remove-padding control-label">
                                是否抵押：
                            </span>
                            <div class="col-md-8">
                                <select class="form-control" ng-model="customer.isPledge" name="isPledge">
                                    <option value="">请选择</option>
                                    <option value="1">是</option>
                                    <option value="0">否</option>
                                </select>
                                <div ng-show="add_form.isPledge.$dirty && add_form.isPledge.$invalid" class="invalid">请选择是否抵押</div>
                            </div>
                        </div>
                        <div class="col-md-8 m-t-1">
                            <span class="col-md-3 remove-padding control-label" style="width: 20%;">
                                抵押跟进情况：
                            </span>
                            <div class="col-md-9">
                                <input type="text" name="pledgeDetail" class="form-control" ng-model="customer.pledgeDetail" placeholder="抵押跟进情况">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="sub_title">其他信息</div>
                <div class="form-horizontal">
                    <div class="form-group">
                        <div class="col-md-12 m-t-1">
                            <span class="col-md-1 remove-padding control-label">
                                电联情况：
                            </span>
                            <div class="col-md-10">
                                <input type="text" name="contact" class="form-control" ng-model="customer.contact" placeholder="电联情况">
                            </div>
                        </div>
                        <div class="col-md-12 m-t-1">
                            <span class="col-md-1 remove-padding control-label">
                                备注：
                            </span>
                            <div class="col-md-10">
                                <textarea name="remark" class="form-control" ng-model="customer.remark" placeholder="备注"></textarea>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="modal-footer">
            <button class="btn btn-primary" type="button" ng-click="ok()">确定</button>
            <button class="btn btn-default" type="button" ng-click="cancel()">取消</button>
        </div>
    </form>
</script>
<!-- 详情窗口 -->
<script type="text/ng-template" id="detail.html">
    <div class="modal-header">
        <button type="button" class="close" ng-click="cancel()"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
        <h3 class="modal-title" id="modal-title">客户详细信息</h3>
    </div>
    <form name="add_form" novalidate>
        <div class="modal-body" id="modal-body">
            <div class="info_bd">
                <div class="sub_title">基本信息</div>
                <table class="table table-bordered">
                    <tr>
                        <td style="width: 16.66%"><b>日期：</b></td>
                        <td style="width: 16.66%">{{customer.requestDate | formatDay}}</td>
                        <td style="width: 16.66%"><b>客户名称：</b></td>
                        <td style="width: 16.66%">{{customer.name}}</td>
                        <td style="width: 16.66%"><b>联系电话：</b></td>
                        <td style="width: 16.66%">{{customer.phone}}</td>
                        <!-- <td style="width: 16.66%"><b>身份证号码：</b></td>
                        <td style="width: 16.66%">{{customer.idcard |idCard}}</td> -->
                    </tr>
                    <tr>
                        <!-- <td><b>联系电话：</b></td>
                        <td>{{customer.phone}}</td> -->
                        <td><b>客户属性：</b></td>
                        <td>{{customer.clientPropertyName}}</td>
                        <td><b>进件方式：</b></td>
                        <td>{{customer.intoWayName}}</td>
                        <td><b>上牌人情况：</b></td>
                        <td>{{customer.situationName}}</td>
                    </tr>
                    <tr>
                        <td><b>上牌人地点：</b></td>
                        <td colspan="3">{{customer.address}}</td>
                        <td></td>
                        <td></td>
                    </tr>
                </table>
                <div class="sub_title">购车信息</div>
                <table class="table table-bordered">
                    <tr>
                        <td style="width: 16.66%"><b>品牌名称：</b></td>
                        <td style="width: 16.66%">{{customer.brandName}}</td>
                        <td style="width: 16.66%"><b>店面名称：</b></td>
                        <td style="width: 16.66%">{{customer.companyName}}</td>
                        <td style="width: 16.66%"><b>车辆型号：</b></td>
                        <td style="width: 16.66%">{{customer.carName}}</td>
                    </tr>
                    <tr>
                        <td><b>销售人员：</b></td>
                        <td>{{customer.sellName}}</td>
                        <td><b>金额：</b></td>
                        <td>{{customer.money}}</td>
                        <td><b>期数：</b></td>
                        <td>{{customer.periods}}</td>
                    </tr>
                    <tr>
                        <td><b>客户费率：</b></td>
                        <td>{{customer.clientRate |addPercentage}}</td>
                        <td><b>经销商费率：</b></td>
                        <td>{{customer.dealerRate |addPercentage}}</td>
                        <td><b>厂家费率：</b></td>
                        <td>{{customer.venderRate |addPercentage}}</td>
                    </tr>
                    <tr>
                        <td colspan="5"><span class="glyphicon glyphicon-paperclip blue-color"></span>&nbsp;附加率</td>
                    </tr>
                    <tr>
                        <td><b>附加率金额：</b></td>
                        <td>{{customer.surchargeMoney}}</td>
                        <td><b>期 数：</b></td>
                        <td>{{customer.surchargePeriods}}</td>
                        <td><b>客户费率：</b></td>
                        <td>{{customer.surchargeClientRate |addPercentage}}</td>
                    </tr>
                    <tr>
                        <td><b>经销商费率：</b></td>
                        <td>{{customer.surchargeDealerRate |addPercentage}}</td>
                        <td><b>厂家费率：</b></td>
                        <td>{{customer.surchargeVenderRate |addPercentage}}</td>
                        <td></td>
                        <td></td>
                    </tr>
                </table>
                <div class="sub_title">审核信息</div>
                <table class="table table-bordered">
                    <tr>
                        <td style="width: 16.66%"><b>预审结果：</b></td>
                        <td style="width: 16.66%">{{customer.prequalificationName}}</td>
                        <td style="width: 16.66%"><b>终审结果：</b></td>
                        <td style="width: 16.66%">{{customer.theName}}</td>
                        <td style="width: 16.66%"><b>进件时间：</b></td>
                        <td style="width: 16.66%">{{customer.intoDate | formatDay}}</td>
                    </tr>
                    <tr>
                        <td><b>同贷时间：</b></td>
                        <td>{{customer.loanDate | formatDay}}</td>
                        <td><b>放款时间：</b></td>
                        <td>{{customer.creditDate | formatDay}}</td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td><b>是否抵押：</b></td>
                        <td><span ng-if="customer.isPledge==1">是</span><span ng-if="customer.isPledge==0">否</span></td>
                        <td><b>抵押跟进情况：</b></td>
                        <td colspan="3">{{customer.pledgeDetail}}</td>
                    </tr>
                </table>
                <div class="sub_title">其他信息</div>
                <table class="table table-bordered">
                    <tr>
                        <td style="width: 16.66%"><b>电联情况：</b></td>
                        <td>{{customer.contact}}</td>
                    </tr>
                    <tr>
                        <td style="width: 16.66%"><b>备注：</b></td>
                        <td>{{customer.remark}}</td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="modal-footer">
            <button class="btn btn-default" type="button" ng-click="cancel()">取消</button>
        </div>
    </form>
</script>